<?php get_header(); ?>

<div class="container">
    <? while (have_posts()) : the_post(); ?>

    <div>
        <h1></h1>

        <div class="row-fluid">
            <div class="span8">
                <div class="card grey">
                    <h3 class="title">Slot Information</h3>

                    <?
                    $fields = get_fields($post->ID);
                    //var_dump($fields);

                    if( $fields ) {
                        foreach( $fields as $field_name => $value ) {
                            // get_field_object( $field_name, $post_id, $options )
                            // - $value has already been loaded for us, no point to load it again in the get_field_object function
                            $field = get_field_object($field_name, false, array('load_value' => false));

                            echo '<p>';
                            echo '<strong>' . $field['label'] . ' (' . $field['name'] . ')</strong><br/>';
                            echo $value.'<br>';
                            var_dump($value);
                            echo '</p>';
                        }
                    }
                    ?>
                </div>

            </div>
            <div class="span4">

            </div>
        </div>


    </div>

    <? endwhile; ?>
</div>

<?php get_footer(); ?>